package com.kylezhang.runner.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/hello")
public class HelloController {

    @GetMapping(value = "/say")
    public String say(Model model){
        model.addAttribute("greet","Hello Thymeleaf");
        return "hello/say";
    }

}
